<div>

  <div class id="domdiv">
    domdiv
  </div>

  <hr>

</div>
<app-student (voted)="callFather($event)" #head [aChild]="aa" [bChild]="bb"></app-student>

<input type='button' value='父调子1' (click)="head.callFun('call fun')">
<hr>
<input type='button' value='父调子2' (click)="callChild()">
<hr>
<input type='button' value='aa' (click)="addAA()">
<br>
<input type='button' value='aa' (click)="addBB()">
<br>

<h1>动态组件切换</h1>
<input type="button" value='button-one' (click)='create1()'>
<input type="button" value='button-two' (click)='create2()'>
<ng-template #container></ng-template>

<!-- <app-d1></app-d1>
<app-d2></app-d2> -->

<h1>表单提交</h1>

<div style="border:1px solid red">
  <form id=formId (ngSubmit)="onSubmit(ff.value)" #ff="ngForm">
    username: <input type="text" name="email" ngModel> <br>
    password: <input type="text" name="pwd" ngModel> <br>
    <input type="submit" name="pwd" value='提交'> <br>
    <br>
  </form>

</div>
